# coding:utf-8
"""封装Response对象"""


class Response(object):
    """框架内置Response对象"""

    def __init__(self, url, body, status_code, headers, encoding):
        # 响应url
        self.url = url
        # 响应体(网页原始编码字符串)
        self.body = body
        # 响应状态码
        self.status_code = status_code
        # 响应头
        self.headers = headers
        # 响应字符串编码
        self.encoding = encoding
